Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: subfile as sublink fallback #726

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

st0nie
Copy link
Contributor

@st0nie st0nie commented Dec 31, 2024

Background

close #598

The current behavior is that dae will try to pull the subscription on startup as well as reload, and will not use the subscription if the pull fails.

This pr introduces https-file and http-file subscriptions (persistent subscriptions), the pull behavior is the same as for https and http, but if the pull fails, it tries to use the persistent file (in the config_directory/persist.d/tag_name.sub), and if the pull succeeds, it will update the persistent file.

Checklist

Full Changelogs

  • [Implement ...]

Issue Reference

Closes #[issue number]

Test Result

@st0nie
Copy link
Contributor Author

st0nie commented Dec 31, 2024

image

Should work, but need more test

@st0nie st0nie changed the title feat: sub file as sublink fallback feat: subfile as sublink fallback Dec 31, 2024
@st0nie st0nie force-pushed the add-persist branch 2 times, most recently from 03280af to d6dbabf Compare December 31, 2024 16:57
@st0nie st0nie force-pushed the add-persist branch 2 times, most recently from ca4de62 to de90c0e Compare December 31, 2024 17:26
@st0nie st0nie requested a review from a team as a code owner December 31, 2024 17:47
@st0nie st0nie requested a review from mzz2017 January 1, 2025 03:58
@st0nie st0nie force-pushed the add-persist branch 2 times, most recently from 196719f to 6b89a4d Compare January 8, 2025 21:19
@st0nie
Copy link
Contributor Author

st0nie commented Jan 10, 2025

If a persistent file is not belonging to any tag, it will be deleted on reload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] 订阅如果更新失败,可以通过代理更新
2 participants